#!/bin/bash
if ! command -v playerctl >/dev/null; then
    echo "playerctl未安装!"
    exit 1
fi
url="$(playerctl -p netease-cloud-music metadata mpris:artUrl)"
curl -s "$url" > /tmp/music.jpg